//
//  MainViewController.m
//  WebServerTools
//
//  Created by 夏利兵 on 2020/8/28.
//  Copyright © 2020 com.lbx. All rights reserved.
//

#import "MainViewController.h"
#import "ResourceWindowController.h"
#import "LBXWindowManage.h"
#import "AppDelegate.h"
#import "LbXLoggerServerWindow.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do view setup here.
}
- (IBAction)resouceManage:(id)sender {
    NSLog(@"resouceManage");
    
   [LBXWindowManage shared].firstWindow =     [NSApplication sharedApplication].keyWindow;

    
    ResourceWindowController *resourceWindow = [[ResourceWindowController alloc]initWithWindowNibName:@"ResourceWindowController"];
       
    [resourceWindow showWindow:nil];
       
     
       //keywindow
    [resourceWindow.window makeKeyAndOrderFront:nil];
    
    [LBXWindowManage shared].windowController = resourceWindow;
    
    


    
    [[LBXWindowManage shared].firstWindow close];
    
}
- (IBAction)testServerLogger:(id)sender {
    
    [LBXWindowManage shared].firstWindow =     [NSApplication sharedApplication].keyWindow;

      
      LbXLoggerServerWindow *resourceWindow = [[LbXLoggerServerWindow alloc]initWithWindowNibName:@"LbXLoggerServerWindow"];
         
      [resourceWindow showWindow:nil];
         
       
         //keywindow
      [resourceWindow.window makeKeyAndOrderFront:nil];
      
      [LBXWindowManage shared].windowController = resourceWindow;
      
      


      
      [[LBXWindowManage shared].firstWindow close];
}

@end
